package com.ruoyi.developer.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @projectName: RuoYi-Cloud-master
 * @package: com.ruoyi.developer.config
 * @className: RuoYiConfig
 * @author: 蛋挞脾气
 * @description: TODO
 * @date: 2025/9/10 11:32
 * @version: 1.0
 */
@Component
@ConfigurationProperties(prefix = "ruoyi")
public class RuoYiConfig {
    private static String profile;

    public static String getProfile() {
        return profile;
    }

    public void setProfile(String profile) {
        RuoYiConfig.profile = profile;
    }

    public static String getUploadPath() {
        return getProfile() + "/upload";
    }
}
